<?php
Class AdminController extends Controller
{    	
	public $layout = 'admin';
	
	public function requiresAuthentication()
	{
		return true;
	}
	
	public function processInsufficientPrivilege()
	{
		
	}
	public function processNotAutenticated()
	{
		$this->_context->redirectUrl('login');
	}
	
	public function Setup()
	{
		parent::Setup();
		
		$this->set('usuario',$this->_context->authenticatedUserName());
	}
}
?>